package map;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import input.AbstractInput;
import output.AbstractOutput;

public class Manager {
	private AbstractInput _aI;
	private AbstractOutput _aO;
	private Map _map;
	
	public Manager(AbstractInput aI, AbstractOutput aO) {
		_aI = aI;
		_aO = aO;
		try(FileInputStream txt = new FileInputStream("C:\\Users\\monushka\\Desktop\\1.txt")) 
		{
			_map = Map.load(txt, _aI);
			//txt.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public void start() {
		_aO.gameOut(_map);
	}
	
	
	
}
